using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DragonAwakening.Game
{
    /// <summary>
    /// The game dice.
    /// </summary>
    public static class Dice
    {
        /// <summary>
        /// Randomizer.
        /// </summary>
        private static Random rand = new Random(DateTime.Now.Millisecond);

        /// <summary>
        /// Roll the dice.
        /// </summary>
        /// <param name="dice">Dice type.</param>
        /// <returns>Dice value from 1 - to the max of the dice.</returns>
        public static int Roll(int dice)
        {
            return rand.Next(dice) + 1;
        }
    }
}
